<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&ak=QwOix7gzb8PX2SQIzSYZXNqDukVO8AdO"></script>
    <title>自定义图层</title>
    <style>
    body,
    html {
        overflow: hidden;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    #map_container {
        width: auto;
        height: 580px;
    }
    
    </style>
   
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
</head>

<body style="margin:0">
    <div id="map_container"></div>
   
</body>
</html>

<script>
var map = new BMap.Map('map_container');
map.centerAndZoom(new BMap.Point(116.123695,24.338252), 19);
map.enableKeyboard();
map.enableScrollWheelZoom();

  

</script>